package com.martini.satoken01.enums;

/**
 * @author martini at 2021/12/19 10:48
 */
public enum UserStatus {

    /**
     * 已激活，使用中
     */
    ACTIVE(0, "已激活，使用中"),

    /**
     * 待验证
     */
    VALIDATION(1, "待验证"),

    /**
     * 冻结中
     */
    FROZEN(2, "冻结中"),

    /**
     * 已注销
     */
    DELETED(3, "已注销");

    private int code;

    private String msg;

    UserStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
